// 导入scss目录下的全局scss
@import './scss/variables';
.topBanner {
  width: 100%;
  margin-bottom: 64px;
  box-shadow: 0px 20px 34px rgba(0, 0, 0, 0.3);
  img {
    width: 100%;
    display: block;
  }
}
.topNav {
  width: 1215px;
  height: 54px;
  /* border-radius: 60px; */
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.73);
  box-shadow: $shadow;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  z-index: 9999;
  img {
    margin-left: 39px;
  }
  .navItem a {
    padding: 0 20px;
    line-height: 54px;
    color: #333333;
    font-size: 26px;
    position: relative;
    box-sizing: border-box;
  }
  div:nth-child(2) {
    margin-left: 67px;
  }
  div:nth-child(3) {
    margin-left: 44px;
  }
  .navItem.on a {
    display: block;
    color: $red;
    border-bottom: 2px solid $red;
  }
}
.wrapMain {
  width: 1215px;
  margin: 85px auto 0;
  display: flex;
  justify-content: space-between;
  .sliderWrap {
    width: 305px;
    position: relative;
    .gameIcon {
      width: 96px;
      height: 96px;
      position: absolute;
      top: -116px;
      left: 0px;
      border: 1px solid rgba(255, 255, 255, 0.5);
      overflow: hidden;
      border-radius: 18px;
      box-shadow: $shadow;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .sliderBanner {
      box-shadow: $shadow;
    }
    .loginWrap {
      height: 330px;
      background-color: #fff;
      box-shadow: $shadow;
      .loginTitle {
        width: 100%;
        height: 66px;
        background: #ececec;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
        
        span {
          font-size: 30px;
          font-weight: bold;
          margin-left: 10px;
        }
      }
      .formWrap {
        margin: 20px;
        .desc {
          font-size: 12;
          display: 'flex';
          align-items: 'center';
          justify-content: 'center';
          i {
            width: 14px;
            height: 14px;
            border:2px solid #dedede;
            border-radius: 50%;
            margin-right: 5px;
          }
        }
        
      }
    }
  }
}

.rightWrap {
  width: 882px;

  .rightContainer {
    box-shadow: $shadow;
    margin-bottom: 250px;
    .rightTitle {
      display: flex;
      font-size: 30px;
      font-weight: bold;
      justify-content: center;
      align-items: center;
      height: 102px;
      border-bottom: 1px solid #dedede;
      background-color: #ececec;
    }
    .rightContent {
      background-color: #fff;
      .rightActive {
        justify-content: center;
        display: flex;
        height: 95px;
        align-items: center;
      }
      .dollarIcon {
        display: block;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background-color: #333;
        color: #fff;
        text-align: center;
        line-height: 34px;
        font-size: 30px;
      }
      .text {
        font-size: 30px;
        font-weight: bold;
        margin-left: 10px;
      }
      .description {
        font-size: 20px;
        color: #828282;
        line-height: 28px;
        text-align: center;
      }
    }
  }
}
// 商品列表
.productList {
  display: flex;
  // 自动换行
  flex-wrap: wrap;
  margin-top: 48px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  .productItem {
    width: 246px;
    height: 280px;
    margin-left: 35px;
    margin-bottom: 40px;
    background-color: #f2f2f2;
    border: 1px solid #dedede;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    &:hover {
      transform: translateY(-6px);
      box-shadow: $shadow;
    }
    .productImg {
      width: 100%;
    }
    .productInfo {
      font-size: 20px;
      font-weight: bold;
      height: 45px;
      line-height: 45px;
    }
    .productDiscount {
      color: $red;
      font-size: 16px;
      border: 1px solid $red;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .productPrice {
      color: $red;
      font-size: 30px;
      font-weight: bold;
    }
    .productOriginPrice {
      color: #9a9a9a;
      font-size: 16px;
      text-decoration: line-through;
    }
    // 溢出内容
    .productSub {
      width: 74px;
      height: 108px;
      position: absolute;
      left: -11px;
      top: -10px;
      background: url(./assets/icon_bg.png) no-repeat;
      text-align: left;
      span {
        font-weight: bold;
        color: #fff;
        font-size: 28px;
        display: block;
        transform: rotate(-45deg);
        padding-top: 9px;
      }
    }
  }
}
// 购物车
.shoppingCart {
  height: 210px;
  width: 882px;
  background-color: #fff;
  position: fixed;
  bottom: 0;
  padding: 30px;
  box-shadow: $shadow;
  .text {
    width: 100%;
    height: 100%;
    border: #333;
    border: $grayBorder;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    .total {
      display: flex;
      align-items: center;
      span {
        &:nth-child(1) {
          font-size: 30px;
          font-weight: bold;
        }
        &:nth-child(2) {
          font-size: 30px;
          font-weight: bold;
          margin-left: 10px;
          position: relative;
          s {
            position: absolute;
            right: 0;
            bottom: -20px;
            font-size: 16px;
            font-weight: normal;
            color: #9a9a9a;
          }
        }
        &:nth-child(3) {
          padding: 0 20px;
          height: 25px;
          line-height: 25px;
          text-align: center;
          color: #fff;
          font-size: 16px;
          margin-left: 10px;
          background-color: $bgColor;
        }
      }
    }
    button {
      width: 190px;
      height: 50px;
      background-color: $bgColor;
      font-size: 30px;
      font-weight: 400;
      border: 0 none;
      color: #fff;
      cursor: pointer;
    }
  }
}
